file_name = 'text_files\\learning_python.txt'

with open(file_name) as file_object:
    print("*****line******")
    for line in file_object:
        print(line)
with open(file_name) as file_object:
    read1_2 = file_object.read()
with open(file_name) as file_object:
    read3   = file_object.readlines()

print("********all_file********")
print(read1_2)
print("******line in ex********")
for reads in read3:
    print(reads.rstrip())
